package com.tongcheng;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Created with IntelliJ IDEA.
 * User: 朱雄
 * Date: 2020/11/21 12:02
 * Description:
 * Version: V1.0
 */
@SpringBootApplication
@EnableFeignClients //feign
@EnableHystrix //熔断器
@EnableDiscoveryClient //扫描子服务
@EnableEurekaClient //自己也是一个子服务


public class FeignHystrixApplicationStart {

    public static void main(String[] args) {
        SpringApplication.run(FeignHystrixApplicationStart.class);
    }

}
